<template>
  <div class="like">
    <div class="container">
      <div class="title">
        <h3 class="fl">猜你喜欢</h3>
        <a href="javascript:;" class="fr tip changeBnt">换一换</a>
      </div>
      <div class="bd">
        <ul class="favourate">
          <li>
            <img src="./images/like_02.png" alt="" />
            <div class="like-text">
              <p>阳光美包新款单肩包女包时尚子母包四件套女</p>
              <h3>¥116.00</h3>
            </div>
          </li>
          <li>
            <img src="./images/like_03.png" alt="" />
            <div class="like-text">
              <p>阳光美包新款单肩包女包时尚子母包四件套女</p>
              <h3>¥116.00</h3>
            </div>
          </li>
          <li>
            <img src="./images/like_01.png" alt="" />
            <div class="like-text">
              <p>阳光美包新款单肩包女包时尚子母包四件套女</p>
              <h3>¥116.00</h3>
            </div>
          </li>
          <li>
            <img src="./images/like_02.png" alt="" />
            <div class="like-text">
              <p>阳光美包新款单肩包女包时尚子母包四件套女</p>
              <h3>¥116.00</h3>
            </div>
          </li>
          <li>
            <img src="./images/like_03.png" alt="" />
            <div class="like-text">
              <p>阳光美包新款单肩包女包时尚子母包四件套女</p>
              <h3>¥116.00</h3>
            </div>
          </li>
          <li>
            <img src="./images/like_01.png" alt="" />
            <div class="like-text">
              <p>阳光美包新款单肩包女包时尚子母包四件套女</p>
              <h3>¥116.00</h3>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "Like",
};
</script>

<style scoped lang="scss">
.like {
  margin-top: 15px;

  .title {
    overflow: hidden;

    .fl {
      font-size: 20px;
      line-height: 30px;
    }

    .fr {
      background-image: url(./images/icons.png);
      width: 66px;
      height: 25px;
      background-position: 182px -104px;
      line-height: 30px;
      font-size: 12px;
      font-weight: 400;
      color: #666;
      text-decoration: none;
    }
  }
  .favourate {
    border: 1px solid #e4e4e4;

    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    li {
      overflow: hidden; //图片方大
      height: 250px;
      float: left;
      width: 16.667%;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      cursor: pointer;
      img {
        width: 142px;
        height: 142px;
        transition: all 400ms;

        &:hover {
          opacity: 0.8;
          transform: scale(1.1);
        }
      }
      .like-text {
        width: 142px;
       
        p {
          margin: 5px 0;
        }

        h3 {
          color: #df3033;
          font-size: 20px;
          line-height: 30px;
          margin: 9px 0;
          font-weight: 700;
        }
      }
    }
  }
}
</style>
